/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#ifndef OHOS_DLNACLIENTAPPPROXY_H
#define OHOS_DLNACLIENTAPPPROXY_H

#include "i_dlna_client_app.h"
#include <iremote_proxy.h>
namespace OHOS {
namespace CastEngine {
namespace CastEngineClient {
class DlnaClientAppProxy : public IRemoteProxy<IDlnaClientApp> {
public:
    bool sendVolumeChangedEvent = false;
    explicit DlnaClientAppProxy(
        /* [in] */ const sptr<IRemoteObject>& remote)
        : IRemoteProxy<IDlnaClientApp>(remote)
    {}

    virtual ~DlnaClientAppProxy()
    {}
    ErrCode OnPositionChanged(
        /* [in] */ int position,
        /* [in] */ int duration,
        /* [out] */ int& result) override;

    ErrCode OnPlayerStatusChanged(
        /* [in] */ int playerStatus,
        /* [out] */ int& result) override;

    ErrCode OnPlayerEnd(
        /* [out] */ int& result) override;

    ErrCode OnVolumeChanged(
        /* [in] */ int volume, 
        /* [in] */ int maxVolume,
         /* [out] */ int& result) override;

private:

    static inline BrokerDelegator<DlnaClientAppProxy> delegator_;
};
}// namespace CastEngine
}// namespace CastEngine
}// namespace OHOS
#endif // OHOS_DlnaClientAppPROXY_H

